import { Button } from 'antd'

import { useLocalStorage } from '@/hooks/useStorage'

const Home = () => {
  const [list, setList] = useLocalStorage('list', true)
  console.log(list)

  return (
    <div>
      Home
      <Button
        type="primary"
        onClick={() => {
          setList(['dfdf'])
        }}
      >
        Button
      </Button>
    </div>
  )
}

export default Home
